Skip to content

Update syntax style on examples #731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Update syntax style on examples #731

wants to merge 1 commit into from

Conversation

alfakini
Copy link

@alfakini alfakini commented Apr 18, 2016

Just some nits :)

@@ -355,7 +355,7 @@ iex> list = [1|[2|[3|[]]]]
This means accessing the length of a list is a linear operation: we need to traverse the whole list in order to figure out its size. Updating a list is fast as long as we are prepending elements:

```iex
iex> [0 | list]
iex> [0|list]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's better if we keep this with spaces, given there's a discussion in an Elixir PR around deciding on the [x | y] style once and for all, throughout all Elixir's codebase. :) Same applies to the other occurrences below.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a commit ready to send fixing all the spaces around the |,
I will send it soon

@josevalim
Copy link
Member

@alfakini can you please send a PR that only takes the space from the right of { and left of }? The rest is correct as today.

@josevalim josevalim closed this Apr 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants